package com.hm.oper_monitor.dao.busimonitor;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.hm.oper_monitor.dao.ServiceUtilDao;
import com.hm.oper_monitor.pojo.BusiMonitor;
import com.hm.oper_monitor.pojo.Config;

@Component
@Service
@Repository
public class BusiMonitorDao extends ServiceUtilDao{
	public List<BusiMonitor> selectPage(String config){
		return this.selectList("selectPage", config, BusiMonitor.class);
	}
	
	public BusiMonitor select(BusiMonitor busiMonitor){
		return this.selectOne("select", busiMonitor, BusiMonitor.class);
	}
	public String selectCount(String str){
		return this.selectOne("selectCount", str, String.class);
	}
	
	public int insert(BusiMonitor busiMonitor){
		return this.insert("insert", busiMonitor);
	}
	
	public int delete(BusiMonitor busiMonitor){
		return this.delete("delete", busiMonitor);
	}
	
	public int update(BusiMonitor busiMonitor){
		return this.update("update", busiMonitor);
	}
	
}
